package cn.edu.sdyu.ie.crs.service;

import cn.edu.sdyu.ie.crs.domain.SelfStudyRoomAppointment;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface SelfStudyRoomAppointmentService {

    /**
     * 查询所有自习室预约信息
     * @return
     */
    List<SelfStudyRoomAppointment> findAll();

    /**
     *
     * @param page 页码
     * @param pageSize 分页大小
     * @return
     */
    Page<SelfStudyRoomAppointment> findByPage(Integer page, Integer pageSize);

    /**
     * 根据自习室预约ID查询自习室预约信息
     * @param id 教室Id
     * @return
     */
    SelfStudyRoomAppointment findSelfStudyRoomAppointmentById(Integer id);

    /**
     * 保存自习室预约信息
     * @param selfStudyRoomAppointment 自习室预约对象
     */
    void saveSelfStudyRoomAppointment(SelfStudyRoomAppointment selfStudyRoomAppointment);

    /**
     * 根据自习室预约ID删除自习室预约信息
     * @param id
     */
    void deleteSelfStudyRoomAppointmentById(Integer id);

}
